import random
from django.db import models
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import User as AuthUser


class Projects(models.Model):
	name = models.CharField(verbose_name='项目名', name='projectName', max_length=150, blank=True)
	index_image = models.CharField(verbose_name='图片地址', name='indexImage', max_length=1024, blank=True, null=True)
	remarks = models.CharField(verbose_name='描述', max_length=255, null=True, blank=True)
	create_time = models.DateTimeField(verbose_name='创建时间', name='createTime', auto_now_add=True)
	create_user_id = models.CharField(verbose_name='创建人', name='createUserId', max_length=32, null=True, blank=True)
	is_delete = models.IntegerField(verbose_name='是否删除', name='isDelete', default=-1)
	state = models.IntegerField(verbose_name='状态', name='state', default=-1)
	content = models.TextField(verbose_name='数据', blank=True)
	
	objects = models.Manager()
